package com.linrui.gift.client;

import com.linrui.gift.domain.LoginUser;
import com.linrui.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
@Configuration
@FeignClient(value = "GIFT-AUTH",fallbackFactory = LoginUserFallbackFactory.class)
public interface LoginUserClient {
    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
